package com.tsing.mapper;

import com.tsing.common.result.PageResult;
import com.tsing.pojo.dto.NewsDTO;
import com.tsing.pojo.entity.TlPost;

/**
 * @author 吴阳基
 * @datetime 2023/12/4 20:55
 */
public interface NewsMapper {
    PageResult<TlPost> list(Integer page, Integer size, Integer status, String title);

    int update(Integer id, Integer status,String msg);

    PageResult<TlPost> findPublished(NewsDTO newsDTO);

    int down_or_up(Integer id, Integer enable);

    TlPost one(Integer id);

}
